package hfjava;

public class Game {
    public static class Hero{
        String name;
        int val;
        public void show(){
            System.out.println("英雄类"+"\n"+"我是英雄类,我的基本信息如下"+"\n"+"名字："+name+"生命值"+val);

        }
    }
    public static class Monster{
        public Hero dogMonster;
        String name;
        int val;
        String kind;
        public void show(){
            System.out.println("怪兽类"+"\n"+"我是怪兽类,我的基本信息如下"+"\n"+"名字："+name+"生命值"+val+"类型"+kind);

        }
    }
    public static class Tools{
        String name;
        int val;
        public void show(){
            System.out.println("武器类"+"\n"+"我是武器类,我的基本信息如下"+"\n"+"名字："+name+"攻击力"+val);

        }
    }
}
